<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动画制作</title>
</head>
<style>
    .wutai {
        width: 800px;
        height: 500px;
        border: 1px solid red;
        margin: 100px auto;
        position: relative;
    }

    .person {
        width: 180px;
        height: 150px;
        background-image: url(./龙蛋的素材库/R-C.gif);
        background-size: cover;
        position: absolute;
        left: 0;
        top: 0;
        animation: moveperson 5s linear infinite;
    }
    @keyframes moveperson{
        0%{
            left: 0px;
            transform: rotate(0deg);
        }
        49% {
            left: 720px;
            transform: rotate(0deg);}
        50% {
            left: 720px;
            transform: rotateY(180deg);}
        99% {
            left: 720px;
            transform: rotateY(180deg);
        }
        100% {
            right: 8px;
            transform: rotate(0deg);
        }
    }
</style>
<body>
    <div class="wutai">
        <div class="person"></div>
    </div>
</body>
</html>